/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.sistemas.postgrado.samupg.repository.dao.implHib;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;
import pe.edu.sistemas.postgrado.samupg.domain.model.RegistroPagos;
import pe.edu.sistemas.postgrado.samupg.repository.dao.RegistroPagosDAO;
/**
 *
 * @author JOSEPH
 */
@Repository
public class RegistroPagosDAOImpl implements RegistroPagosDAO{
    
    @Autowired
    private SessionFactory sesionfactory;
    
    @Override
    public void LeerComprobantepago(RegistroPagos rp) throws DataAccessException {
        sesionfactory.getCurrentSession().save(rp);
    }
    
}
